using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

using YEngineLib;

namespace Spyfall
{
    /// <summary>
    /// This is the main type for your game
    /// </summary>
    public class Game1 : YEngineLib.YGame
    {
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            this.graphics.PreferredBackBufferWidth = 1280;
            this.graphics.PreferredBackBufferHeight = 720;

#if DEBUG
            //graphics.IsFullScreen = false;
#else 
            //graphics.IsFullScreen = true;
#endif

            this.graphics.ApplyChanges();

#if XBOX
            base.Components.Add(new Microsoft.Xna.Framework.GamerServices.GamerServicesComponent(this));
#endif
       
            base.Initialize();
        }

        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            base.LoadContent();
            YEngine.State.Initialize(this.Content, new LoadScreen());

            YEngine.State.RegisterState("IntroState", new States.IntroState());
            YEngine.State.RegisterState("MenuState", new States.MainMenuState());
            YEngine.State.RegisterState("GameState", new States.GameState());
           // YEngine.State.RegisterState("OptionState", new States.OptionState());
            //YEngine.State.RegisterState("CreditsState", new States.CreditsState());
            //YEngine.State.RegisterState("HighScoreState", new States.HighScoreState());
            YEngine.State.RegisterState("FileManagerState", new States.FileManagerState());
            //YEngine.State.RegisterState("HowToPlayState", new States.HowToPlayState());
            YEngine.State.RegisterState("PauseState", new States.PauseState());
            YEngine.State.RegisterState("ShopState", new States.ShopState());
            YEngine.State.RegisterState("GameOverState", new States.GameOverState());
            YEngine.State.RegisterState("WinState", new States.WinState());
            YEngine.State.RegisterState("ResumeState", new States.ResumeState());



            //ScreenManager.Game.Components.Add(
    //new Microsoft.Xna.Framework.GamerServices.GamerServicesComponent(ScreenManager.Game));


        }
}

}
